QT       += core gui dbus network KWindowSystem svg

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

include(../env.pri)
INCLUDEPATH +=./widgets

TARGET = kylin-activation
TEMPLATE = app

TRANSLATIONS += \
    translation/kylin_activation_zh_CN.ts \
    translation/kylin_activation_bo_CN.ts \
    translation/kylin_activation_mn.ts \
    translation/kylin_activation_zh_HK.ts

QMAKE_CXXFLAGS+=-g

CONFIG += link_pkgconfig
PKGCONFIG += gobject-2.0\
    glib-2.0\
    dbus-glib-1\
    polkit-gobject-1\
    gthread-2.0\
    openssl\
    gsettings-qt

PKGCONFIG += kysdk-qtwidgets

LIBS += -lkylin-activation\
            -lssl\
             -lgpgme\
             -lcrypt\
             -lcrypto

SOURCES +=\
    activatesucceedwidget.cpp \
    activation.cpp\
    deactivatewidget.cpp \
    dropwidget.cpp \
    #filerepeatdialog.cpp \
    getconnectconfig.cpp \
    hardware_info.c \
    importlicensefilewidget.cpp \
    interface.cpp \
    kmsinstallactivationthread.cpp \
    main.cpp\
    activation_thread.cpp \
    activation_thread_kms.cpp \
    mylabel.cpp \
    qrcodeactivationwidget.cpp \
    receive_dbus.cpp \
    secretkeyactivationwidget.cpp \
    secretkeyofflineactivationwidget.cpp \
    socketmanager.cpp \
    systemactivationmainwindow.cpp \
    transform.c \
    ssl.c \
    info_crypt.c \
    base64.c \
    ukeyactivationwidget.cpp\
    qtsingleapplication/qtlocalpeer.cpp \
    qtsingleapplication/qtlockedfile.cpp \
    qtsingleapplication/qtlockedfile_unix.cpp \
    qtsingleapplication/qtsingleapplication.cpp
#    activationsystemdbus.cpp

HEADERS  += activation.h \
    activatesucceedwidget.h \
    activation_thread.h \
    activation_thread_kms.h \
    deactivatewidget.h \
    dropwidget.h \
    #filerepeatdialog.h \
    getconnectconfig.h \
    hardware_info.h \
    importlicensefilewidget.h \
    interface.h \
    kmsinstallactivationthread.h \
    mylabel.h \
    qrcodeactivationwidget.h \
    receive_dbus.h \
    definition.h \
    secretkeyactivationwidget.h \
    secretkeyofflineactivationwidget.h \
    socketmanager.h \
    systemactivationmainwindow.h \
    ukeyactivationwidget.h\
    qtsingleapplication/qtlocalpeer.h \
    qtsingleapplication/qtlockedfile.h \
    qtsingleapplication/qtsingleapplication.h
#    activationsystemdbus.h

FORMS    += activation.ui \
    activatesucceedwidget.ui \
    deactivatewidget.ui \
    dropwidget.ui \
    importlicensefilewidget.ui \
    qrcodeactivationwidget.ui \
    secretkeyactivationwidget.ui \
    secretkeyofflineactivationwidget.ui \
    systemactivationmainwindow.ui \
    ukeyactivationwidget.ui

target.source += $$TARGET
target.path = /usr/bin
INSTALLS += target

RESOURCES += \
    img.qrc
